﻿namespace Microsoft.Extensions.Configuration
{
    public class TinyDBConfigOptions
    {
        /// <summary>
        /// 数据库连接
        /// </summary>
        public System.Func<System.Data.IDbConnection> CreateDbConnection { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; } = "TinyDBConfig";

        /// <summary>
        /// 数据变更后是否重新加载
        /// </summary>
        public bool ReloadOnChange { get; set; } = false;

        /// <summary>
        /// 重新加载间隔时间
        /// </summary>
        public System.TimeSpan? ReloadInterval { get; set; }
    }
}